package hy.config;

import abc.Dog;
import abc.Person;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@EnableConfigurationProperties(Dog.class)
@Configuration
public class MyCfg {
    @Bean
    @ConfigurationProperties(prefix = "person")
    public Person a(){
        return new Person();
    }
}
